-- @testpoint: 反引号测试用例,部分用例合理报错
-- 验证反引号在修改函数中的作用
-- 设置非双引号模式
set dolphin.sql_mode='';
-- 创建函数
DROP FUNCTION if EXISTS f_opengauss_fanyinhao_case0143_1(c_int int) CASCADE;
CREATE FUNCTION f_opengauss_fanyinhao_case0143_1 (c_int int) RETURNS int  AS $$
        BEGIN
                RETURN (c_int);
        END;
$$ LANGUAGE plpgsql
STRICT;
/
-- 修改函数
ALTER FUNCTION `f_opengauss_fanyinhao_case0143_1`(c_int int) RENAME TO ` f_opengauss_fanyinhao_case0143_2`;
ALTER FUNCTION ` f_opengauss_fanyinhao_case0143_2`(c_int int) RENAME TO ` f_opengauss_fanyinhao_case0143_2`;
ALTER FUNCTION ` f_opengauss_fanyinhao_case0143_2`(c_int int) RENAME TO f_opengauss_fanyinhao_case0143_3;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_3(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_3 ;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_3(c_int int)  RENAME TO f_opengauss_fanyinhao_ case0143_4 ;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_3(c_int int)  RENAME TO `f_opengauss_fanyinhao_ case0143_4`;
ALTER FUNCTION  `f_opengauss_fanyinhao_ case0143_4`(c_int int) RENAME TO `f_opengauss_fanyinhao_ case0143_4`;
ALTER FUNCTION  `f_opengauss_fanyinhao_ case0143_4`(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_5;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_5(c_int int)  RENAME TO  `f_opengauss_fanyinhao_case0143_5`;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_5(c_int int)  RENAME TO 1 ;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_5(c_int int)  RENAME TO `1`;
ALTER FUNCTION  `1`(c_int int)  RENAME TO `1`;
ALTER FUNCTION  `1`(c_int int) RENAME TO `f_opengauss_fanyinhao_case0143_6我`;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_6我`(c_int int) RENAME TO  f_opengauss_fanyinhao_case0143_6我;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_6我`(c_int int)  RENAME TO `f_opengauss_fanyinhao_case0143_7`;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_7`(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_7 ;
ALTER FUNCTION  f_opengauss_fanyinhao_case0143_7(c_int int)  RENAME TO `f_opengauss_fanyinhao_case0143_8$` ;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_8$`(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_8$;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_8$`(c_int int)  RENAME TO  `f_opengauss_fanyinhao_case0143_9`;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_9`(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_9;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_9`(c_int int)  RENAME TO  `f_opengauss_fanyinhao_case0143_10@`;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_10@`(c_int int)  RENAME TO f_opengauss_fanyinhao_case0143_10@;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_10@`(c_int int)  RENAME TO ``;
ALTER FUNCTION  `f_opengauss_fanyinhao_case0143_10@`(c_int int)  RENAME TO `int`;
ALTER FUNCTION  `int`(c_int int) RENAME TO int;
ALTER FUNCTION  `int`(c_int int)  RENAME TO `$`;
ALTER FUNCTION  `$`(c_int int) RENAME TO $;
ALTER FUNCTION  `$`(c_int int)  RENAME TO  `_`;
ALTER FUNCTION  `_`(c_int int) RENAME TO `我`;
ALTER FUNCTION  `我`(c_int int) RENAME TO 我;
ALTER FUNCTION  `我`(c_int int)  RENAME TO `f_opengauss_fanyinhao_"case0143_11`;
ALTER FUNCTION  `我`(c_int int) RENAME TO `f_opengauss_fanyinhao_""case0143_11`;
-- 清理环境
DROP FUNCTION `f_opengauss_fanyinhao_""case0143_11`(c_int int);
